package org.csapi.wsdl.parlayx.terminal_location.v3_1.service;

import java.util.List;

import javax.jws.WebService;

import org.csapi.schema.parlayx.common.v3_1.TimeMetric;
import org.csapi.schema.parlayx.terminal_location.v3_0.DelayTolerance;
import org.csapi.schema.parlayx.terminal_location.v3_0.LocationData;
import org.csapi.schema.parlayx.terminal_location.v3_0.LocationInfo;
import org.csapi.wsdl.parlayx.common.v3_0.faults.PolicyException;
import org.csapi.wsdl.parlayx.common.v3_0.faults.ServiceException;
import org.csapi.wsdl.parlayx.terminal_location.v3_1._interface.TerminalLocation;

@WebService(endpointInterface="org.csapi.wsdl.parlayx.terminal_location.v3_1._interface.TerminalLocation")
public class TerminalLocationService implements TerminalLocation {

	@Override
	public List<LocationData> getLocationForGroup(String requester,
			List<String> addresses, int requestedAccuracy,
			int acceptableAccuracy, TimeMetric maximumAge,
			TimeMetric responseTime, DelayTolerance tolerance)
			throws PolicyException, ServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getTerminalDistance(String requester, String address,
			float latitude, float longitude) throws PolicyException,
			ServiceException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public LocationInfo getLocation(String requester, String address,
			int requestedAccuracy, int acceptableAccuracy,
			TimeMetric maximumAge, TimeMetric responseTime,
			DelayTolerance tolerance) throws PolicyException, ServiceException {
		// TODO Auto-generated method stub
		LocationInfo loc = new LocationInfo();
		loc.setAccuracy(9);
		loc.setLatitude(10.0f);
		loc.setLongitude(20.0f);
		
		return loc;
	}

}
